package com.pubinfo.passbook.common.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author xuhong
 * @since 2022-04-01
 */
@Getter
@Setter
@Accessors(chain = true)
@NoArgsConstructor
@TableName("t_ftp_password")
public class TFtpPassword implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    private String id;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * ftp密码
     */
    @TableField("password")
    private String password;

    public TFtpPassword(String password) {
        this.password = password;
    }
}
